package com.jdd.modules.parkmonthly.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jdd.modules.parkmonthly.entity.MonthlyPeromissionGroup;
import com.jdd.modules.parkmonthly.mapper.MonthlyPeromissionGroupMapper;
import com.jdd.modules.parkmonthly.service.IMonthlyPeromissionGroupService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


/**
 * @Description: 月卡-通行权限组关联业务类
 * @Author: jdd
 * @Date: 2021-11-09
 * @Version: V1.0
 */
@Service
public class MonthlyPeromissionGroupServiceImpl extends ServiceImpl<MonthlyPeromissionGroupMapper, MonthlyPeromissionGroup> implements IMonthlyPeromissionGroupService {

    @Resource
    private MonthlyPeromissionGroupMapper monthlyPeromissionGroupMapper;

    @Override
    public int getByMonthlyCardIdAndMonthlyPeromissionCount(String permissionid, String areaId) {
        return monthlyPeromissionGroupMapper.selectByMonthlyCardIdAndMonthlyPeromissionCount(permissionid, areaId);
    }

}
